/*
 * 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。[遇见知启蒙，邂逅框架梦]
 * 
 * https://zhiqim.org/project/zhiqim_framework/zhiqim_orm.htm
 *
 * Zhiqim Orm is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *          http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */
package org.zhiqim.orm.test.qc.ex;

import org.zhiqim.orm.test.qc.dbo.QcComment;

import org.zhiqim.kernel.annotation.AnAlias;
import org.zhiqim.kernel.annotation.AnNew;
import org.zhiqim.kernel.json.Jsons;
import org.zhiqim.orm.annotation.*;

/**
 * 评论扩展表 对应视图《COMMENT_EX》
 */
@AnAlias("CommentEx")
@AnNew
@AnView("QC_COMMENT,USER_ACCOUNT")
@AnViewJoin({@AnViewJoinValue(type="EQUAL", lTable="QC_COMMENT", lColumn="COMMENT_USER_ID", rTable="USER_ACCOUNT", rColumn="USER_ID")})
public class CommentEx extends QcComment
{
    private static final long serialVersionUID = 1L;

    @AnViewField(table="USER_ACCOUNT", column="USER_NICK")    private String userNick;    //1.用户昵称
    @AnViewField(table="USER_ACCOUNT", column="USER_AVATAR_50")    private String userAvatar50;    //2.用户头像

    public String toString()
    {
        return Jsons.toString(this);
    }

    public String getUserNick()
    {
        return userNick;
    }

    public void setUserNick(String userNick)
    {
        this.userNick = userNick;
    }

    public String getUserAvatar50()
    {
        return userAvatar50;
    }

    public void setUserAvatar50(String userAvatar50)
    {
        this.userAvatar50 = userAvatar50;
    }

}
